package com.itheima;

import com.example.EnableHeaderConfig;
import com.example.HeaderConfig;
import com.example.MyImportSelector;
import com.example.TokenParser;
import org.dom4j.io.SAXReader;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;

//@ComponentScan({"com.itheima", "com.example"})


//@Import({TokenParser.class})  // 导入普通类，交给IOC容器管理
//@Import({HeaderConfig.class})  // 导入配置类，交给IOC容器管理
//@Import({MyImportSelector.class})  // 导入ImportSelector实现类

@EnableHeaderConfig
@SpringBootApplication
public class SpringbootWebConfig2Application {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootWebConfig2Application.class, args);
    }

  /*  // 声明第三方bean
    @Bean  // 将方法返回值交给IOC容器管理，成为IOC容器的bean对象
    public SAXReader saxReader(){
        return new SAXReader();
    }*/
}
